import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default {
  namespaced: true,
  state: {
    token: JSON.parse(localStorage.getItem('hmtt')) || {}
  },
  getters: {},
  mutations: {
    setToken(state, payload) {
      state.token = payload

      localStorage.setItem('hmtt', JSON.stringify(payload))
    }
  },
  actions: {}
}
